home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Errors.a < prev    next >
Encoding:
Text File  |  1998-02-12  |  68.3 KB  |  1,438 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Errors.a
  3. ;
  4. ;    Contains:    OSErr codes.
  5. ;
  6. ;    Version:    Technology:    Mac OS 8
  7. ;                Release:    Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  19. __ERRORS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.  
  25.  
  26. paramErr                        EQU        -50                    ;error in user parameter list
  27. noHardwareErr                    EQU        -200                ;Sound Manager Error Returns
  28. notEnoughHardwareErr            EQU        -201                ;Sound Manager Error Returns
  29. userCanceledErr                    EQU        -128
  30. qErr                            EQU        -1                    ;queue element not found during deletion
  31. vTypErr                            EQU        -2                    ;invalid queue element
  32. corErr                            EQU        -3                    ;core routine number out of range
  33. unimpErr                        EQU        -4                    ;unimplemented core routine
  34. SlpTypeErr                        EQU        -5                    ;invalid queue element
  35. seNoDB                            EQU        -8                    ;no debugger installed to handle debugger command
  36. controlErr                        EQU        -17                    ;I/O System Errors
  37. statusErr                        EQU        -18                    ;I/O System Errors
  38. readErr                            EQU        -19                    ;I/O System Errors
  39. writErr                            EQU        -20                    ;I/O System Errors
  40. badUnitErr                        EQU        -21                    ;I/O System Errors
  41. unitEmptyErr                    EQU        -22                    ;I/O System Errors
  42. openErr                            EQU        -23                    ;I/O System Errors
  43. closErr                            EQU        -24                    ;I/O System Errors
  44. dRemovErr                        EQU        -25                    ;tried to remove an open driver
  45. dInstErr                        EQU        -26                    ;DrvrInstall couldn't find driver in resources
  46.  
  47. abortErr                        EQU        -27                    ;IO call aborted by KillIO
  48. iIOAbortErr                        EQU        -27                    ;IO abort error (Printing Manager)
  49. notOpenErr                        EQU        -28                    ;Couldn't rd/wr/ctl/sts cause driver not opened
  50. unitTblFullErr                    EQU        -29                    ;unit table has no more entries
  51. dceExtErr                        EQU        -30                    ;dce extension error
  52. slotNumErr                        EQU        -360                ;invalid slot # error
  53. gcrOnMFMErr                        EQU        -400                ;gcr format on high density media error
  54. dirFulErr                        EQU        -33                    ;Directory full
  55. dskFulErr                        EQU        -34                    ;disk full
  56. nsvErr                            EQU        -35                    ;no such volume
  57. ioErr                            EQU        -36                    ;I/O error (bummers)
  58. bdNamErr                        EQU        -37                    ;there may be no bad names in the final system!
  59. fnOpnErr                        EQU        -38                    ;File not open
  60. eofErr                            EQU        -39                    ;End of file
  61. posErr                            EQU        -40                    ;tried to position to before start of file (r/w)
  62. mFulErr                            EQU        -41                    ;memory full (open) or file won't fit (load)
  63. tmfoErr                            EQU        -42                    ;too many files open
  64. fnfErr                            EQU        -43                    ;File not found
  65. wPrErr                            EQU        -44                    ;diskette is write protected.
  66. fLckdErr                        EQU        -45                    ;file is locked
  67.  
  68. vLckdErr                        EQU        -46                    ;volume is locked
  69. fBsyErr                            EQU        -47                    ;File is busy (delete)
  70. dupFNErr                        EQU        -48                    ;duplicate filename (rename)
  71. opWrErr                            EQU        -49                    ;file already open with with write permission
  72. rfNumErr                        EQU        -51                    ;refnum error
  73. gfpErr                            EQU        -52                    ;get file position error
  74. volOffLinErr                    EQU        -53                    ;volume not on line error (was Ejected)
  75. permErr                            EQU        -54                    ;permissions error (on file open)
  76. volOnLinErr                        EQU        -55                    ;drive volume already on-line at MountVol
  77. nsDrvErr                        EQU        -56                    ;no such drive (tried to mount a bad drive num)
  78. noMacDskErr                        EQU        -57                    ;not a mac diskette (sig bytes are wrong)
  79. extFSErr                        EQU        -58                    ;volume in question belongs to an external fs
  80. fsRnErr                            EQU        -59                    ;file system internal error:during rename the old entry was deleted but could not be restored.
  81. badMDBErr                        EQU        -60                    ;bad master directory block
  82. wrPermErr                        EQU        -61                    ;write permissions error
  83. dirNFErr                        EQU        -120                ;Directory not found
  84. tmwdoErr                        EQU        -121                ;No free WDCB available
  85. badMovErr                        EQU        -122                ;Move into offspring error
  86. wrgVolTypErr                    EQU        -123                ;Wrong volume type error [operation not supported for MFS]
  87. volGoneErr                        EQU        -124                ;Server volume has been disconnected.
  88.  
  89. fidNotFound                        EQU        -1300                ;no file thread exists.
  90. fidExists                        EQU        -1301                ;file id already exists
  91. notAFileErr                        EQU        -1302                ;directory specified
  92. diffVolErr                        EQU        -1303                ;files on different volumes
  93. catChangedErr                    EQU        -1304                ;the catalog has been modified
  94. desktopDamagedErr                EQU        -1305                ;desktop database files are corrupted
  95. sameFileErr                        EQU        -1306                ;can't exchange a file with itself
  96. badFidErr                        EQU        -1307                ;file id is dangling or doesn't match with the file number
  97. notARemountErr                    EQU        -1308                ;when _Mount allows only remounts and doesn't get one
  98. fileBoundsErr                    EQU        -1309                ;file's EOF, offset, mark or size is too big
  99. fsDataTooBigErr                    EQU        -1310                ;file or volume is too big for system
  100. volVMBusyErr                    EQU        -1311                ;can't eject because volume is in use by VM
  101. envNotPresent                    EQU        -5500                ;returned by glue.
  102. envBadVers                        EQU        -5501                ;Version non-positive
  103. envVersTooBig                    EQU        -5502                ;Version bigger than call can handle
  104. fontDecError                    EQU        -64                    ;error during font declaration
  105. fontNotDeclared                    EQU        -65                    ;font not declared
  106. fontSubErr                        EQU        -66                    ;font substitution occured
  107. fontNotOutlineErr                EQU        -32615                ;bitmap font passed to routine that does outlines only
  108. firstDskErr                        EQU        -84                    ;I/O System Errors
  109. lastDskErr                        EQU        -64                    ;I/O System Errors
  110. noDriveErr                        EQU        -64                    ;drive not installed
  111. offLinErr                        EQU        -65                    ;r/w requested for an off-line drive
  112. noNybErr                        EQU        -66                    ;couldn't find 5 nybbles in 200 tries
  113.  
  114. noAdrMkErr                        EQU        -67                    ;couldn't find valid addr mark
  115. dataVerErr                        EQU        -68                    ;read verify compare failed
  116. badCksmErr                        EQU        -69                    ;addr mark checksum didn't check
  117. badBtSlpErr                        EQU        -70                    ;bad addr mark bit slip nibbles
  118. noDtaMkErr                        EQU        -71                    ;couldn't find a data mark header
  119. badDCksum                        EQU        -72                    ;bad data mark checksum
  120. badDBtSlp                        EQU        -73                    ;bad data mark bit slip nibbles
  121. wrUnderrun                        EQU        -74                    ;write underrun occurred
  122. cantStepErr                        EQU        -75                    ;step handshake failed
  123. tk0BadErr                        EQU        -76                    ;track 0 detect doesn't change
  124. initIWMErr                        EQU        -77                    ;unable to initialize IWM
  125. twoSideErr                        EQU        -78                    ;tried to read 2nd side on a 1-sided drive
  126. spdAdjErr                        EQU        -79                    ;unable to correctly adjust disk speed
  127. seekErr                            EQU        -80                    ;track number wrong on address mark
  128. sectNFErr                        EQU        -81                    ;sector number never found on a track
  129. fmt1Err                            EQU        -82                    ;can't find sector 0 after track format
  130. fmt2Err                            EQU        -83                    ;can't get enough sync
  131. verErr                            EQU        -84                    ;track failed to verify
  132. clkRdErr                        EQU        -85                    ;unable to read same clock value twice
  133. clkWrErr                        EQU        -86                    ;time written did not verify
  134. prWrErr                            EQU        -87                    ;parameter ram written didn't read-verify
  135. prInitErr                        EQU        -88                    ;InitUtil found the parameter ram uninitialized
  136. rcvrErr                            EQU        -89                    ;SCC receiver error (framing; parity; OR)
  137. breakRecd                        EQU        -90                    ;Break received (SCC)
  138.  
  139.                                                             ;Scrap Manager errors
  140. noScrapErr                        EQU        -100                ;No scrap exists error
  141. noTypeErr                        EQU        -102                ;No object of that type in scrap
  142.  
  143.                                                             ; ENET error codes 
  144. eLenErr                            EQU        -92                    ;Length error ddpLenErr
  145. eMultiErr                        EQU        -91                    ;Multicast address error ddpSktErr
  146.  
  147. ddpSktErr                        EQU        -91                    ;error in soket number
  148. ddpLenErr                        EQU        -92                    ;data length too big
  149. noBridgeErr                        EQU        -93                    ;no network bridge for non-local send
  150. lapProtErr                        EQU        -94                    ;error in attaching/detaching protocol
  151. excessCollsns                    EQU        -95                    ;excessive collisions on write
  152. portNotPwr                        EQU        -96                    ;serial port not currently powered
  153. portInUse                        EQU        -97                    ;driver Open error code (port is in use)
  154. portNotCf                        EQU        -98                    ;driver Open error code (parameter RAM not configured for this connection)
  155.  
  156.                                                             ; Memory Manager errors
  157. memROZWarn                        EQU        -99                    ;soft error in ROZ
  158. memROZError                        EQU        -99                    ;hard error in ROZ
  159. memROZErr                        EQU        -99                    ;hard error in ROZ
  160. memFullErr                        EQU        -108                ;Not enough room in heap zone
  161. nilHandleErr                    EQU        -109                ;Master Pointer was NIL in HandleZone or other
  162. memWZErr                        EQU        -111                ;WhichZone failed (applied to free block)
  163. memPurErr                        EQU        -112                ;trying to purge a locked or non-purgeable block
  164. memAdrErr                        EQU        -110                ;address was odd; or out of range
  165. memAZErr                        EQU        -113                ;Address in zone check failed
  166. memPCErr                        EQU        -114                ;Pointer Check failed
  167. memBCErr                        EQU        -115                ;Block Check failed
  168. memSCErr                        EQU        -116                ;Size Check failed
  169. memLockedErr                    EQU        -117                ;trying to move a locked block (MoveHHi)
  170.  
  171.                                                             ; Printing Errors 
  172. iMemFullErr                        EQU        -108
  173. iIOAbort                        EQU        -27
  174.  
  175.  
  176. resourceInMemory                EQU        -188                ;Resource already in memory
  177. writingPastEnd                    EQU        -189                ;Writing past end of file
  178. inputOutOfBounds                EQU        -190                ;Offset of Count out of bounds
  179. resNotFound                        EQU        -192                ;Resource not found
  180. resFNotFound                    EQU        -193                ;Resource file not found
  181. addResFailed                    EQU        -194                ;AddResource failed
  182. addRefFailed                    EQU        -195                ;AddReference failed
  183. rmvResFailed                    EQU        -196                ;RmveResource failed
  184. rmvRefFailed                    EQU        -197                ;RmveReference failed
  185. resAttrErr                        EQU        -198                ;attribute inconsistent with operation
  186. mapReadErr                        EQU        -199                ;map inconsistent with operation
  187. CantDecompress                    EQU        -186                ;resource bent ("the bends") - can't decompress a compressed resource
  188. badExtResource                    EQU        -185                ;extended resource has a bad format.
  189. noMemForPictPlaybackErr            EQU        -145
  190. rgnOverflowErr                    EQU        -147
  191. rgnTooBigError                    EQU        -147
  192. pixMapTooDeepErr                EQU        -148
  193. insufficientStackErr            EQU        -149
  194. nsStackErr                        EQU        -149
  195.  
  196. evtNotEnb                        EQU        1                    ;event not enabled at PostEvent
  197. ;  OffScreen QuickDraw Errors 
  198.  
  199. cMatchErr                        EQU        -150                ;Color2Index failed to find an index
  200. cTempMemErr                        EQU        -151                ;failed to allocate memory for temporary structures
  201. cNoMemErr                        EQU        -152                ;failed to allocate memory for structure
  202. cRangeErr                        EQU        -153                ;range error on colorTable request
  203. cProtectErr                        EQU        -154                ;colorTable entry protection violation
  204. cDevErr                            EQU        -155                ;invalid type of graphics device
  205. cResErr                            EQU        -156                ;invalid resolution for MakeITable
  206. cDepthErr                        EQU        -157                ;invalid pixel depth 
  207. rgnTooBigErr                    EQU        -500
  208. updPixMemErr                    EQU        -125                ;insufficient memory to update a pixmap
  209. pictInfoVersionErr                EQU        -11000                ;wrong version of the PictInfo structure
  210. pictInfoIDErr                    EQU        -11001                ;the internal consistancy check for the PictInfoID is wrong
  211. pictInfoVerbErr                    EQU        -11002                ;the passed verb was invalid
  212. cantLoadPickMethodErr            EQU        -11003                ;unable to load the custom pick proc
  213. colorsRequestedErr                EQU        -11004                ;the number of colors requested was illegal
  214. pictureDataErr                    EQU        -11005                ;the picture data was invalid
  215.  
  216.                                                             ;Sound Manager errors
  217. noHardware                        EQU        -200                ;obsolete spelling
  218. notEnoughHardware                EQU        -201                ;obsolete spelling
  219. queueFull                        EQU        -203                ;Sound Manager Error Returns
  220. resProblem                        EQU        -204                ;Sound Manager Error Returns
  221. badChannel                        EQU        -205                ;Sound Manager Error Returns
  222. badFormat                        EQU        -206                ;Sound Manager Error Returns
  223. notEnoughBufferSpace            EQU        -207                ;could not allocate enough memory
  224. badFileFormat                    EQU        -208                ;was not type AIFF or was of bad format,corrupt
  225. channelBusy                        EQU        -209                ;the Channel is being used for a PFD already
  226. buffersTooSmall                    EQU        -210                ;can not operate in the memory allowed
  227. channelNotBusy                    EQU        -211
  228. noMoreRealTime                    EQU        -212                ;not enough CPU cycles left to add another task
  229. siNoSoundInHardware                EQU        -220                ;no Sound Input hardware
  230. siBadSoundInDevice                EQU        -221                ;invalid index passed to SoundInGetIndexedDevice
  231. siNoBufferSpecified                EQU        -222                ;returned by synchronous SPBRecord if nil buffer passed
  232. siInvalidCompression            EQU        -223                ;invalid compression type
  233. siHardDriveTooSlow                EQU        -224                ;hard drive too slow to record to disk
  234. siInvalidSampleRate                EQU        -225                ;invalid sample rate
  235. siInvalidSampleSize                EQU        -226                ;invalid sample size
  236. siDeviceBusyErr                    EQU        -227                ;input device already in use
  237. siBadDeviceName                    EQU        -228                ;input device could not be opened
  238. siBadRefNum                        EQU        -229                ;invalid input device reference number
  239. siInputDeviceErr                EQU        -230                ;input device hardware failure
  240. siUnknownInfoType                EQU        -231                ;invalid info type selector (returned by driver)
  241. siUnknownQuality                EQU        -232                ;invalid quality selector (returned by driver)
  242. ; Speech Manager errors
  243.  
  244. noSynthFound                    EQU        -240
  245. synthOpenFailed                    EQU        -241
  246. synthNotReady                    EQU        -242
  247. bufTooSmall                        EQU        -243
  248. voiceNotFound                    EQU        -244
  249. incompatibleVoice                EQU        -245
  250. badDictFormat                    EQU        -246
  251. badInputText                    EQU        -247
  252. ;  Midi Manager Errors: 
  253.  
  254. midiNoClientErr                    EQU        -250                ;no client with that ID found
  255. midiNoPortErr                    EQU        -251                ;no port with that ID found
  256. midiTooManyPortsErr                EQU        -252                ;too many ports already installed in the system
  257. midiTooManyConsErr                EQU        -253                ;too many connections made
  258. midiVConnectErr                    EQU        -254                ;pending virtual connection created
  259. midiVConnectMade                EQU        -255                ;pending virtual connection resolved
  260. midiVConnectRmvd                EQU        -256                ;pending virtual connection removed
  261. midiNoConErr                    EQU        -257                ;no connection exists between specified ports
  262. midiWriteErr                    EQU        -258                ;MIDIWritePacket couldn't write to all connected ports
  263. midiNameLenErr                    EQU        -259                ;name supplied is longer than 31 characters
  264. midiDupIDErr                    EQU        -260                ;duplicate client ID
  265. midiInvalidCmdErr                EQU        -261                ;command not supported for port type
  266.  
  267.  
  268. nmTypErr                        EQU        -299                ;Notification Manager:wrong queue type
  269.  
  270.  
  271. siInitSDTblErr                    EQU        1                    ;slot int dispatch table could not be initialized.
  272. siInitVBLQsErr                    EQU        2                    ;VBLqueues for all slots could not be initialized.
  273. siInitSPTblErr                    EQU        3                    ;slot priority table could not be initialized.
  274. sdmJTInitErr                    EQU        10                    ;SDM Jump Table could not be initialized.
  275. sdmInitErr                        EQU        11                    ;SDM could not be initialized.
  276. sdmSRTInitErr                    EQU        12                    ;Slot Resource Table could not be initialized.
  277. sdmPRAMInitErr                    EQU        13                    ;Slot PRAM could not be initialized.
  278. sdmPriInitErr                    EQU        14                    ;Cards could not be initialized.
  279.  
  280. smSDMInitErr                    EQU        -290                ;Error; SDM could not be initialized.
  281. smSRTInitErr                    EQU        -291                ;Error; Slot Resource Table could not be initialized.
  282. smPRAMInitErr                    EQU        -292                ;Error; Slot Resource Table could not be initialized.
  283. smPriInitErr                    EQU        -293                ;Error; Cards could not be initialized.
  284. smEmptySlot                        EQU        -300                ;No card in slot
  285. smCRCFail                        EQU        -301                ;CRC check failed for declaration data
  286. smFormatErr                        EQU        -302                ;FHeader Format is not Apple's
  287. smRevisionErr                    EQU        -303                ;Wrong revison level
  288. smNoDir                            EQU        -304                ;Directory offset is Nil
  289. smDisabledSlot                    EQU        -305                ;This slot is disabled (-305 use to be smLWTstBad)
  290. smNosInfoArray                    EQU        -306                ;No sInfoArray. Memory Mgr error.
  291.  
  292.  
  293. smResrvErr                        EQU        -307                ;Fatal reserved error. Resreved field <> 0.
  294. smUnExBusErr                    EQU        -308                ;Unexpected BusError
  295. smBLFieldBad                    EQU        -309                ;ByteLanes field was bad.
  296. smFHBlockRdErr                    EQU        -310                ;Error occured during _sGetFHeader.
  297. smFHBlkDispErr                    EQU        -311                ;Error occured during _sDisposePtr (Dispose of FHeader block).
  298. smDisposePErr                    EQU        -312                ;_DisposePointer error
  299. smNoBoardSRsrc                    EQU        -313                ;No Board sResource.
  300. smGetPRErr                        EQU        -314                ;Error occured during _sGetPRAMRec (See SIMStatus).
  301. smNoBoardId                        EQU        -315                ;No Board Id.
  302. smInitStatVErr                    EQU        -316                ;The InitStatusV field was negative after primary or secondary init.
  303. smInitTblVErr                    EQU        -317                ;An error occured while trying to initialize the Slot Resource Table.
  304. smNoJmpTbl                        EQU        -318                ;SDM jump table could not be created.
  305. smReservedSlot                    EQU        -318                ;slot is reserved, VM should not use this address space.
  306. smBadBoardId                    EQU        -319                ;BoardId was wrong; re-init the PRAM record.
  307. smBusErrTO                        EQU        -320                ;BusError time out.
  308.                                                             ; These errors are logged in the  vendor status field of the sInfo record. 
  309. svTempDisable                    EQU        -32768                ;Temporarily disable card but run primary init.
  310. svDisabled                        EQU        -32640                ;Reserve range -32640 to -32768 for Apple temp disables.
  311. smBadRefId                        EQU        -330                ;Reference Id not found in List
  312. smBadsList                        EQU        -331                ;Bad sList: Id1 < Id2 < Id3 ...format is not followed.
  313. smReservedErr                    EQU        -332                ;Reserved field not zero
  314. smCodeRevErr                    EQU        -333                ;Code revision is wrong
  315.  
  316. smCPUErr                        EQU        -334                ;Code revision is wrong
  317. smsPointerNil                    EQU        -335                ;LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
  318. smNilsBlockErr                    EQU        -336                ;Nil sBlock error (Dont allocate and try to use a nil sBlock)
  319. smSlotOOBErr                    EQU        -337                ;Slot out of bounds error
  320. smSelOOBErr                        EQU        -338                ;Selector out of bounds error
  321. smNewPErr                        EQU        -339                ;_NewPtr error
  322. smBlkMoveErr                    EQU        -340                ;_BlockMove error
  323. smCkStatusErr                    EQU        -341                ;Status of slot = fail.
  324. smGetDrvrNamErr                    EQU        -342                ;Error occured during _sGetDrvrName.
  325. smDisDrvrNamErr                    EQU        -343                ;Error occured during _sDisDrvrName.
  326. smNoMoresRsrcs                    EQU        -344                ;No more sResources
  327. smsGetDrvrErr                    EQU        -345                ;Error occurred during _sGetDriver.
  328. smBadsPtrErr                    EQU        -346                ;Bad pointer was passed to sCalcsPointer
  329. smByteLanesErr                    EQU        -347                ;NumByteLanes was determined to be zero.
  330. smOffsetErr                        EQU        -348                ;Offset was too big (temporary error
  331. smNoGoodOpens                    EQU        -349                ;No opens were successfull in the loop.
  332. smSRTOvrFlErr                    EQU        -350                ;SRT over flow.
  333. smRecNotFnd                        EQU        -351                ;Record not found in the SRT.
  334.  
  335.  
  336.                                                             ;Dictionary Manager errors
  337. notBTree                        EQU        -410                ;The file is not a dictionary.
  338. btNoSpace                        EQU        -413                ;Can't allocate disk space.
  339. btDupRecErr                        EQU        -414                ;Record already exists.
  340. btRecNotFnd                        EQU        -415                ;Record cannot be found.
  341. btKeyLenErr                        EQU        -416                ;Maximum key length is too long or equal to zero.
  342. btKeyAttrErr                    EQU        -417                ;There is no such a key attribute.
  343. unknownInsertModeErr            EQU        -20000                ;There is no such an insert mode.
  344. recordDataTooBigErr                EQU        -20001                ;The record data is bigger than buffer size (1024 bytes).
  345. invalidIndexErr                    EQU        -20002                ;The recordIndex parameter is not valid.
  346.  
  347.                                                             ; Edition Mgr errors
  348. editionMgrInitErr                EQU        -450                ;edition manager not inited by this app
  349. badSectionErr                    EQU        -451                ;not a valid SectionRecord
  350. notRegisteredSectionErr            EQU        -452                ;not a registered SectionRecord
  351. badEditionFileErr                EQU        -453                ;edition file is corrupt
  352. badSubPartErr                    EQU        -454                ;can not use sub parts in this release
  353. multiplePublisherWrn            EQU        -460                ;A Publisher is already registered for that container
  354. containerNotFoundWrn            EQU        -461                ;could not find editionContainer at this time
  355. containerAlreadyOpenWrn            EQU        -462                ;container already opened by this section
  356. notThePublisherWrn                EQU        -463                ;not the first registered publisher for that container
  357.  
  358. teScrapSizeErr                    EQU        -501                ;scrap item too big for text edit record
  359. hwParamErr                        EQU        -502                ;bad selector for _HWPriv
  360.  
  361.                                                             ;Process Manager errors
  362. procNotFound                    EQU        -600                ;no eligible process with specified descriptor
  363. memFragErr                        EQU        -601                ;not enough room to launch app w/special requirements
  364. appModeErr                        EQU        -602                ;memory mode is 32-bit, but app not 32-bit clean
  365. protocolErr                        EQU        -603                ;app made module calls in improper order
  366. hardwareConfigErr                EQU        -604                ;hardware configuration not correct for call
  367. appMemFullErr                    EQU        -605                ;application SIZE not big enough for launch
  368. appIsDaemon                        EQU        -606                ;app is BG-only, and launch flags disallow this
  369. bufferIsSmall                    EQU        -607                ;error returns from Post and Accept 
  370. noOutstandingHLE                EQU        -608
  371. connectionInvalid                EQU        -609
  372. noUserInteractionAllowed        EQU        -610                ; no user interaction allowed 
  373. ;  Thread Manager Error Codes 
  374.  
  375. threadTooManyReqsErr            EQU        -617
  376. threadNotFoundErr                EQU        -618
  377. threadProtocolErr                EQU        -619
  378. ; MemoryDispatch errors
  379.  
  380. notEnoughMemoryErr                EQU        -620                ;insufficient physical memory
  381. notHeldErr                        EQU        -621                ;specified range of memory is not held
  382. cannotMakeContiguousErr            EQU        -622                ;cannot make specified range contiguous
  383. notLockedErr                    EQU        -623                ;specified range of memory is not locked
  384. interruptsMaskedErr                EQU        -624                ;don’t call with interrupts masked
  385. cannotDeferErr                    EQU        -625                ;unable to defer additional functions
  386. noMMUErr                        EQU        -626                ;no MMU present
  387.  
  388.  
  389.                                                             ; Database access error codes 
  390. rcDBNull                        EQU        -800
  391. rcDBValue                        EQU        -801
  392. rcDBError                        EQU        -802
  393. rcDBBadType                        EQU        -803
  394. rcDBBreak                        EQU        -804
  395. rcDBExec                        EQU        -805
  396. rcDBBadSessID                    EQU        -806
  397. rcDBBadSessNum                    EQU        -807                ; bad session number for DBGetConnInfo 
  398. rcDBBadDDEV                        EQU        -808                ; bad ddev specified on DBInit 
  399. rcDBAsyncNotSupp                EQU        -809                ; ddev does not support async calls 
  400. rcDBBadAsyncPB                    EQU        -810                ; tried to kill a bad pb 
  401. rcDBNoHandler                    EQU        -811                ; no app handler for specified data type 
  402. rcDBWrongVersion                EQU        -812                ; incompatible versions 
  403. rcDBPackNotInited                EQU        -813                ; attempt to call other routine before InitDBPack 
  404.  
  405. ; Help Mgr error range: -850 to -874
  406.  
  407. hmHelpDisabled                    EQU        -850                ; Show Balloons mode was off, call to routine ignored 
  408. hmBalloonAborted                EQU        -853                ; Returned if mouse was moving or mouse wasn't in window port rect 
  409. hmSameAsLastBalloon                EQU        -854                ; Returned from HMShowMenuBalloon if menu & item is same as last time 
  410. hmHelpManagerNotInited            EQU        -855                ; Returned from HMGetHelpMenuHandle if help menu not setup 
  411. hmSkippedBalloon                EQU        -857                ; Returned from calls if helpmsg specified a skip balloon 
  412. hmWrongVersion                    EQU        -858                ; Returned if help mgr resource was the wrong version 
  413. hmUnknownHelpType                EQU        -859                ; Returned if help msg record contained a bad type 
  414. hmOperationUnsupported            EQU        -861                ; Returned from HMShowBalloon call if bad method passed to routine 
  415. hmNoBalloonUp                    EQU        -862                ; Returned from HMRemoveBalloon if no balloon was visible when call was made 
  416. hmCloseViewActive                EQU        -863                ; Returned from HMRemoveBalloon if CloseView was active 
  417.  
  418.  
  419.  
  420.                                                             ;PPC errors
  421. notInitErr                        EQU        -900                ;PPCToolBox not initialized
  422. nameTypeErr                        EQU        -902                ;Invalid or inappropriate locationKindSelector in locationName
  423. noPortErr                        EQU        -903                ;Unable to open port or bad portRefNum
  424. noGlobalsErr                    EQU        -904                ;The system is hosed, better re-boot
  425. localOnlyErr                    EQU        -905                ;Network activity is currently disabled
  426. destPortErr                        EQU        -906                ;Port does not exist at destination
  427. sessTableErr                    EQU        -907                ;Out of session tables, try again later
  428. noSessionErr                    EQU        -908                ;Invalid session reference number
  429. badReqErr                        EQU        -909                ;bad parameter or invalid state for operation
  430. portNameExistsErr                EQU        -910                ;port is already open (perhaps in another app)
  431. noUserNameErr                    EQU        -911                ;user name unknown on destination machine
  432. userRejectErr                    EQU        -912                ;Destination rejected the session request
  433. noMachineNameErr                EQU        -913                ;user hasn't named his Macintosh in the Network Setup Control Panel
  434. noToolboxNameErr                EQU        -914                ;A system resource is missing, not too likely
  435. noResponseErr                    EQU        -915                ;unable to contact destination
  436. portClosedErr                    EQU        -916                ;port was closed
  437. sessClosedErr                    EQU        -917                ;session was closed
  438. badPortNameErr                    EQU        -919                ;PPCPortRec malformed
  439. noDefaultUserErr                EQU        -922                ;user hasn't typed in owners name in Network Setup Control Pannel
  440. notLoggedInErr                    EQU        -923                ;The default userRefNum does not yet exist
  441. noUserRefErr                    EQU        -924                ;unable to create a new userRefNum
  442. networkErr                        EQU        -925                ;An error has occured in the network, not too likely
  443. noInformErr                        EQU        -926                ;PPCStart failed because destination did not have inform pending
  444. authFailErr                        EQU        -927                ;unable to authenticate user at destination
  445. noUserRecErr                    EQU        -928                ;Invalid user reference number
  446. badServiceMethodErr                EQU        -930                ;illegal service type, or not supported
  447. badLocNameErr                    EQU        -931                ;location name malformed
  448. guestNotAllowedErr                EQU        -932                ;destination port requires authentication
  449.  
  450. noMaskFoundErr                    EQU        -1000                ;Icon Utilties Error
  451.  
  452. nbpBuffOvr                        EQU        -1024                ;Buffer overflow in LookupName
  453. nbpNoConfirm                    EQU        -1025
  454. nbpConfDiff                        EQU        -1026                ;Name confirmed at different socket
  455. nbpDuplicate                    EQU        -1027                ;Duplicate name exists already
  456. nbpNotFound                        EQU        -1028                ;Name not found on remove
  457. nbpNISErr                        EQU        -1029                ;Error trying to open the NIS
  458.  
  459. aspBadVersNum                    EQU        -1066                ;Server cannot support this ASP version
  460. aspBufTooSmall                    EQU        -1067                ;Buffer too small
  461. aspNoMoreSess                    EQU        -1068                ;No more sessions on server
  462. aspNoServers                    EQU        -1069                ;No servers at that address
  463. aspParamErr                        EQU        -1070                ;Parameter error
  464. aspServerBusy                    EQU        -1071                ;Server cannot open another session
  465. aspSessClosed                    EQU        -1072                ;Session closed
  466. aspSizeErr                        EQU        -1073                ;Command block too big
  467. aspTooMany                        EQU        -1074                ;Too many clients (server error)
  468. aspNoAck                        EQU        -1075                ;No ack on attention request (server err)
  469.  
  470. reqFailed                        EQU        -1096
  471. tooManyReqs                        EQU        -1097
  472. tooManySkts                        EQU        -1098
  473. badATPSkt                        EQU        -1099
  474. badBuffNum                        EQU        -1100
  475. noRelErr                        EQU        -1101
  476. cbNotFound                        EQU        -1102
  477. noSendResp                        EQU        -1103
  478. noDataArea                        EQU        -1104
  479. reqAborted                        EQU        -1105
  480. ;  ADSP Error Codes 
  481.  
  482.                                                             ; driver control ioResults 
  483. errRefNum                        EQU        -1280                ; bad connection refNum 
  484. errAborted                        EQU        -1279                ; control call was aborted 
  485. errState                        EQU        -1278                ; bad connection state for this operation 
  486. errOpening                        EQU        -1277                ; open connection request failed 
  487. errAttention                    EQU        -1276                ; attention message too long 
  488. errFwdReset                        EQU        -1275                ; read terminated by forward reset 
  489. errDSPQueueSize                    EQU        -1274                ; DSP Read/Write Queue Too small 
  490. errOpenDenied                    EQU        -1273                ; open connection request was denied 
  491.  
  492. ; --------------------------------------------------------------
  493. ;        Apple event manager error messages
  494. ;--------------------------------------------------------------
  495.  
  496.  
  497. errAECoercionFail                EQU        -1700                ; bad parameter data or unable to coerce the data supplied 
  498. errAEDescNotFound                EQU        -1701
  499. errAECorruptData                EQU        -1702
  500. errAEWrongDataType                EQU        -1703
  501. errAENotAEDesc                    EQU        -1704
  502. errAEBadListItem                EQU        -1705                ; the specified list item does not exist 
  503. errAENewerVersion                EQU        -1706                ; need newer version of the AppleEvent manager 
  504. errAENotAppleEvent                EQU        -1707                ; the event is not in AppleEvent format 
  505. errAEEventNotHandled            EQU        -1708                ; the AppleEvent was not handled by any handler 
  506. errAEReplyNotValid                EQU        -1709                ; AEResetTimer was passed an invalid reply parameter 
  507. errAEUnknownSendMode            EQU        -1710                ; mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown 
  508. errAEWaitCanceled                EQU        -1711                ; in AESend, the user cancelled out of wait loop for reply or receipt 
  509. errAETimeout                    EQU        -1712                ; the AppleEvent timed out 
  510. errAENoUserInteraction            EQU        -1713                ; no user interaction is allowed 
  511. errAENotASpecialFunction        EQU        -1714                ; there is no special function for/with this keyword 
  512. errAEParamMissed                EQU        -1715                ; a required parameter was not accessed 
  513. errAEUnknownAddressType            EQU        -1716                ; the target address type is not known 
  514. errAEHandlerNotFound            EQU        -1717                ; no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler 
  515. errAEReplyNotArrived            EQU        -1718                ; the contents of the reply you are accessing have not arrived yet 
  516. errAEIllegalIndex                EQU        -1719                ; index is out of range in a put operation 
  517. errAEImpossibleRange            EQU        -1720                ; A range like 3rd to 2nd, or 1st to all. 
  518. errAEWrongNumberArgs            EQU        -1721                ; Logical op kAENOT used with other than 1 term 
  519. errAEAccessorNotFound            EQU        -1723                ; Accessor proc matching wantClass and containerType or wildcards not found 
  520. errAENoSuchLogical                EQU        -1725                ; Something other than AND, OR, or NOT 
  521. errAEBadTestKey                    EQU        -1726                ; Test is neither typeLogicalDescriptor nor typeCompDescriptor 
  522. errAENotAnObjSpec                EQU        -1727                ; Param to AEResolve not of type 'obj ' 
  523. errAENoSuchObject                EQU        -1728                ; e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. 
  524. errAENegativeCount                EQU        -1729                ; CountProc returned negative value 
  525. errAEEmptyListContainer            EQU        -1730                ; Attempt to pass empty list as container to accessor 
  526. errAEUnknownObjectType            EQU        -1731                ; available only in version 1.0.1 or greater 
  527. errAERecordingIsAlreadyOn        EQU        -1732                ; available only in version 1.0.1 or greater 
  528. errAEReceiveTerminate            EQU        -1733                ; break out of all levels of AEReceive to the topmost (1.1 or greater) 
  529. errAEReceiveEscapeCurrent        EQU        -1734                ; break out of only lowest level of AEReceive (1.1 or greater) 
  530. errAEEventFiltered                EQU        -1735                ; event has been filtered, and should not be propogated (1.1 or greater) 
  531. errAEDuplicateHandler            EQU        -1736                ; attempt to install handler in table for identical class and id (1.1 or greater) 
  532. errAEStreamBadNesting            EQU        -1737                ; nesting violation while streaming 
  533. errAEStreamAlreadyConverted        EQU        -1738                ; attempt to convert a stream that has already been converted 
  534. errAEDescIsNull                    EQU        -1739                ; attempting to perform an invalid operation on a null descriptor 
  535.  
  536. errOSASystemError                EQU        -1750
  537. errOSAInvalidID                    EQU        -1751
  538. errOSABadStorageType            EQU        -1752
  539. errOSAScriptError                EQU        -1753
  540. errOSABadSelector                EQU        -1754
  541. errOSASourceNotAvailable        EQU        -1756
  542. errOSANoSuchDialect                EQU        -1757
  543. errOSADataFormatObsolete        EQU        -1758
  544. errOSADataFormatTooNew            EQU        -1759
  545. errOSACorruptData                EQU        -1702
  546. errOSARecordingIsAlreadyOn        EQU        -1732
  547. errOSAComponentMismatch            EQU        -1761                ; Parameters are from 2 different components 
  548. errOSACantOpenComponent            EQU        -1762                ; Can't connect to scripting system with that ID 
  549.  
  550.  
  551. ;  AppleEvent error definitions 
  552.  
  553. errOffsetInvalid                EQU        -1800
  554. errOffsetIsOutsideOfView        EQU        -1801
  555. errTopOfDocument                EQU        -1810
  556. errTopOfBody                    EQU        -1811
  557. errEndOfDocument                EQU        -1812
  558. errEndOfBody                    EQU        -1813
  559.  
  560.                                                             ; Drag Manager error codes 
  561. badDragRefErr                    EQU        -1850                ; unknown drag reference 
  562. badDragItemErr                    EQU        -1851                ; unknown drag item reference 
  563. badDragFlavorErr                EQU        -1852                ; unknown flavor type 
  564. duplicateFlavorErr                EQU        -1853                ; flavor type already exists 
  565. cantGetFlavorErr                EQU        -1854                ; error while trying to get flavor data 
  566. duplicateHandlerErr                EQU        -1855                ; handler already exists 
  567. handlerNotFoundErr                EQU        -1856                ; handler not found 
  568. dragNotAcceptedErr                EQU        -1857                ; drag was not accepted by receiver 
  569. unsupportedForPlatformErr        EQU        -1858                ; call is for PowerPC only 
  570. noSuitableDisplaysErr            EQU        -1859                ; no displays support translucency 
  571. badImageRgnErr                    EQU        -1860                ; bad translucent image region 
  572. badImageErr                        EQU        -1861                ; bad translucent image PixMap 
  573.  
  574. ; QuickTime errors
  575.  
  576. couldNotResolveDataRef            EQU        -2000
  577. badImageDescription                EQU        -2001
  578. badPublicMovieAtom                EQU        -2002
  579. cantFindHandler                    EQU        -2003
  580. cantOpenHandler                    EQU        -2004
  581. badComponentType                EQU        -2005
  582. noMediaHandler                    EQU        -2006
  583. noDataHandler                    EQU        -2007
  584. invalidMedia                    EQU        -2008
  585. invalidTrack                    EQU        -2009
  586. invalidMovie                    EQU        -2010
  587. invalidSampleTable                EQU        -2011
  588. invalidDataRef                    EQU        -2012
  589. invalidHandler                    EQU        -2013
  590. invalidDuration                    EQU        -2014
  591. invalidTime                        EQU        -2015
  592. cantPutPublicMovieAtom            EQU        -2016
  593. badEditList                        EQU        -2017
  594. mediaTypesDontMatch                EQU        -2018
  595. progressProcAborted                EQU        -2019
  596. movieToolboxUninitialized        EQU        -2020
  597. noRecordOfApp                    EQU        -2020                ; replica 
  598. wfFileNotFound                    EQU        -2021
  599. cantCreateSingleForkFile        EQU        -2022                ; happens when file already exists 
  600. invalidEditState                EQU        -2023
  601. nonMatchingEditState            EQU        -2024
  602. staleEditState                    EQU        -2025
  603. userDataItemNotFound            EQU        -2026
  604. maxSizeToGrowTooSmall            EQU        -2027
  605. badTrackIndex                    EQU        -2028
  606. trackIDNotFound                    EQU        -2029
  607. trackNotInMovie                    EQU        -2030
  608. timeNotInTrack                    EQU        -2031
  609. timeNotInMedia                    EQU        -2032
  610. badEditIndex                    EQU        -2033
  611. internalQuickTimeError            EQU        -2034
  612. cantEnableTrack                    EQU        -2035
  613. invalidRect                        EQU        -2036
  614. invalidSampleNum                EQU        -2037
  615. invalidChunkNum                    EQU        -2038
  616. invalidSampleDescIndex            EQU        -2039
  617. invalidChunkCache                EQU        -2040
  618. invalidSampleDescription        EQU        -2041
  619. dataNotOpenForRead                EQU        -2042
  620. dataNotOpenForWrite                EQU        -2043
  621. dataAlreadyOpenForWrite            EQU        -2044
  622. dataAlreadyClosed                EQU        -2045
  623. endOfDataReached                EQU        -2046
  624. dataNoDataRef                    EQU        -2047
  625. noMovieFound                    EQU        -2048
  626. invalidDataRefContainer            EQU        -2049
  627. badDataRefIndex                    EQU        -2050
  628. noDefaultDataRef                EQU        -2051
  629. couldNotUseAnExistingSample        EQU        -2052
  630. featureUnsupported                EQU        -2053
  631. noVideoTrackInMovieErr            EQU        -2054                ; QT for Windows error 
  632. noSoundTrackInMovieErr            EQU        -2055                ; QT for Windows error 
  633. soundSupportNotAvailableErr        EQU        -2056                ; QT for Windows error 
  634. unsupportedAuxiliaryImportData    EQU        -2057
  635. auxiliaryExportDataUnavailable    EQU        -2058
  636. samplesAlreadyInMediaErr        EQU        -2059
  637. noSourceTreeFoundErr            EQU        -2060
  638. sourceNotFoundErr                EQU        -2061
  639. movieTextNotFoundErr            EQU        -2062
  640. missingRequiredParameterErr        EQU        -2063
  641. invalidSpriteWorldPropertyErr    EQU        -2064
  642. invalidSpritePropertyErr        EQU        -2065
  643. gWorldsNotSameDepthAndSizeErr    EQU        -2066
  644. invalidSpriteIndexErr            EQU        -2067
  645. invalidImageIndexErr            EQU        -2068
  646. invalidSpriteIDErr                EQU        -2069
  647.  
  648. internalComponentErr            EQU        -2070
  649. notImplementedMusicOSErr        EQU        -2071
  650. cantSendToSynthesizerOSErr        EQU        -2072
  651. cantReceiveFromSynthesizerOSErr    EQU        -2073
  652. illegalVoiceAllocationOSErr        EQU        -2074
  653. illegalPartOSErr                EQU        -2075
  654. illegalChannelOSErr                EQU        -2076
  655. illegalKnobOSErr                EQU        -2077
  656. illegalKnobValueOSErr            EQU        -2078
  657. illegalInstrumentOSErr            EQU        -2079
  658. illegalControllerOSErr            EQU        -2080
  659. midiManagerAbsentOSErr            EQU        -2081
  660. synthesizerNotRespondingOSErr    EQU        -2082
  661. synthesizerOSErr                EQU        -2083
  662. illegalNoteChannelOSErr            EQU        -2084
  663. noteChannelNotAllocatedOSErr    EQU        -2085
  664. tunePlayerFullOSErr                EQU        -2086
  665. tuneParseOSErr                    EQU        -2087
  666. noExportProcAvailableErr        EQU        -2089
  667. videoOutputInUseErr                EQU        -2090
  668.  
  669. componentDllLoadErr                EQU        -2091                ; Windows specific errors (when component is loading)
  670. componentDllEntryNotFoundErr    EQU        -2092                ; Windows specific errors (when component is loading)
  671. qtmlDllLoadErr                    EQU        -2093                ; Windows specific errors (when qtml is loading)
  672. qtmlDllEntryNotFoundErr            EQU        -2094                ; Windows specific errors (when qtml is loading)
  673. qtmlUninitialized                EQU        -2095
  674. unsupportedOSErr                EQU        -2096
  675. unsupportedProcessorErr            EQU        -2097
  676.  
  677. cannotFindAtomErr                EQU        -2101
  678. notLeafAtomErr                    EQU        -2102
  679. atomsNotOfSameTypeErr            EQU        -2103
  680. atomIndexInvalidErr                EQU        -2104
  681. duplicateAtomTypeAndIDErr        EQU        -2105
  682. invalidAtomErr                    EQU        -2106
  683. invalidAtomContainerErr            EQU        -2107
  684. invalidAtomTypeErr                EQU        -2108
  685. cannotBeLeafAtomErr                EQU        -2109
  686.  
  687. digiUnimpErr                    EQU        -2201                ; feature unimplemented 
  688. qtParamErr                        EQU        -2202                ; bad input parameter (out of range, etc) 
  689. matrixErr                        EQU        -2203                ; bad matrix, digitizer did nothing 
  690. notExactMatrixErr                EQU        -2204                ; warning of bad matrix, digitizer did its best 
  691. noMoreKeyColorsErr                EQU        -2205                ; all key indexes in use 
  692. notExactSizeErr                    EQU        -2206                ; Can’t do exact size requested 
  693. badDepthErr                        EQU        -2207                ; Can’t digitize into this depth 
  694. noDMAErr                        EQU        -2208                ; Can’t do DMA digitizing (i.e. can't go to requested dest 
  695. badCallOrderErr                    EQU        -2209                ; Usually due to a status call being called prior to being setup first 
  696.  
  697. ;   Kernel Error Codes  
  698.  
  699. kernelIncompleteErr                EQU        -2401
  700. kernelCanceledErr                EQU        -2402
  701. kernelOptionsErr                EQU        -2403
  702. kernelPrivilegeErr                EQU        -2404
  703. kernelUnsupportedErr            EQU        -2405
  704. kernelObjectExistsErr            EQU        -2406
  705. kernelWritePermissionErr        EQU        -2407
  706. kernelReadPermissionErr            EQU        -2408
  707. kernelExecutePermissionErr        EQU        -2409
  708. kernelDeletePermissionErr        EQU        -2410
  709. kernelExecutionLevelErr            EQU        -2411
  710. kernelAttributeErr                EQU        -2412
  711. kernelAsyncSendLimitErr            EQU        -2413
  712. kernelAsyncReceiveLimitErr        EQU        -2414
  713. kernelTimeoutErr                EQU        -2415
  714. kernelInUseErr                    EQU        -2416
  715. kernelTerminatedErr                EQU        -2417
  716. kernelExceptionErr                EQU        -2418
  717. kernelIDErr                        EQU        -2419
  718. kernelAlreadyFreeErr            EQU        -2421
  719. kernelReturnValueErr            EQU        -2422
  720. kernelUnrecoverableErr            EQU        -2499
  721.  
  722.  
  723.  
  724.                                                             ; Text Services Mgr error codes 
  725. tsmComponentNoErr                EQU        0                    ; component result = no error 
  726. tsmUnsupScriptLanguageErr        EQU        -2500
  727. tsmInputMethodNotFoundErr        EQU        -2501
  728. tsmNotAnAppErr                    EQU        -2502                ; not an application error 
  729. tsmAlreadyRegisteredErr            EQU        -2503                ; want to register again error 
  730. tsmNeverRegisteredErr            EQU        -2504                ; app never registered error (not TSM aware) 
  731. tsmInvalidDocIDErr                EQU        -2505                ; invalid TSM documentation id 
  732. tsmTSMDocBusyErr                EQU        -2506                ; document is still active 
  733. tsmDocNotActiveErr                EQU        -2507                ; document is NOT active 
  734. tsmNoOpenTSErr                    EQU        -2508                ; no open text service 
  735. tsmCantOpenComponentErr            EQU        -2509                ; can’t open the component 
  736. tsmTextServiceNotFoundErr        EQU        -2510                ; no text service found 
  737. tsmDocumentOpenErr                EQU        -2511                ; there are open documents 
  738. tsmUseInputWindowErr            EQU        -2512                ; not TSM aware because we are using input window 
  739. tsmTSHasNoMenuErr                EQU        -2513                ; the text service has no menu 
  740. tsmTSNotOpenErr                    EQU        -2514                ; text service is not open 
  741. tsmComponentAlreadyOpenErr        EQU        -2515                ; text service already opened for the document 
  742. tsmInputMethodIsOldErr            EQU        -2516                ; returned by GetDefaultInputMethod 
  743. tsmScriptHasNoIMErr                EQU        -2517                ; script has no imput method or is using old IM 
  744. tsmUnsupportedTypeErr            EQU        -2518                ; unSupported interface type error 
  745. tsmUnknownErr                    EQU        -2519                ; any other errors 
  746. tsmInvalidContext                EQU        -2520                ; Invalid TSMContext specified in call 
  747. tsmNoHandler                    EQU        -2521                ; No Callback Handler exists for callback 
  748. tsmNoMoreTokens                    EQU        -2522                ; No more tokens are available for the source text 
  749. tsmNoStem                        EQU        -2523                ; No stem exists for the token 
  750.  
  751.  
  752.                                                             ; Mixed Mode error codes 
  753. mmInternalError                    EQU        -2526
  754. ;  NameRegistry error codes 
  755.  
  756. nrLockedErr                        EQU        -2536
  757. nrNotEnoughMemoryErr            EQU        -2537
  758. nrInvalidNodeErr                EQU        -2538
  759. nrNotFoundErr                    EQU        -2539
  760. nrNotCreatedErr                    EQU        -2540
  761. nrNameErr                        EQU        -2541
  762. nrNotSlotDeviceErr                EQU        -2542
  763. nrDataTruncatedErr                EQU        -2543
  764. nrPowerErr                        EQU        -2544
  765. nrPowerSwitchAbortErr            EQU        -2545
  766. nrTypeMismatchErr                EQU        -2546
  767. nrNotModifiedErr                EQU        -2547
  768. nrOverrunErr                    EQU        -2548
  769. nrResultCodeBase                EQU        -2549
  770. nrPathNotFound                    EQU        -2550                ; a path component lookup failed 
  771. nrPathBufferTooSmall            EQU        -2551                ; buffer for path is too small 
  772. nrInvalidEntryIterationOp        EQU        -2552                ; invalid entry iteration operation 
  773. nrPropertyAlreadyExists            EQU        -2553                ; property already exists 
  774. nrIterationDone                    EQU        -2554                ; iteration operation is done 
  775. nrExitedIteratorScope            EQU        -2555                ; outer scope of iterator was exited 
  776. nrTransactionAborted            EQU        -2556                ; transaction was aborted 
  777. ; **************************************************************************
  778. ;    Apple Script Error Codes
  779. ;*************************************************************************
  780.  
  781. ;  Runtime errors: 
  782.  
  783. errASCantConsiderAndIgnore        EQU        -2720
  784. errASCantCompareMoreThan32k        EQU        -2721                ; Parser/Compiler errors: 
  785. errASTerminologyNestingTooDeep    EQU        -2760
  786. errASIllegalFormalParameter        EQU        -2761
  787. errASParameterNotForEvent        EQU        -2762
  788. errASNoResultReturned            EQU        -2763                ;     The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.) 
  789. errASInconsistentNames            EQU        -2780                ;     English errors: 
  790.  
  791. ;  The preferred spelling for Code Fragment Manager errors:
  792.  
  793. cfragFirstErrCode                EQU        -2800                ; The first value in the range of CFM errors.
  794. cfragContextIDErr                EQU        -2800                ; The context ID was not valid.
  795. cfragConnectionIDErr            EQU        -2801                ; The connection ID was not valid.
  796. cfragNoSymbolErr                EQU        -2802                ; The specified symbol was not found.
  797. cfragNoSectionErr                EQU        -2803                ; The specified section was not found.
  798. cfragNoLibraryErr                EQU        -2804                ; The named library was not found.
  799. cfragDupRegistrationErr            EQU        -2805                ; The registration name was already in use.
  800. cfragFragmentFormatErr            EQU        -2806                ; A fragment's container format is unknown.
  801. cfragUnresolvedErr                EQU        -2807                ; A fragment had "hard" unresolved imports.
  802. cfragNoPositionErr                EQU        -2808                ; The registration insertion point was not found.
  803. cfragNoPrivateMemErr            EQU        -2809                ; Out of memory for internal bookkeeping.
  804. cfragNoClientMemErr                EQU        -2810                ; Out of memory for fragment mapping or section instances.
  805. cfragNoIDsErr                    EQU        -2811                ; No more CFM IDs for contexts, connections, etc.
  806. cfragInitOrderErr                EQU        -2812                ; 
  807. cfragImportTooOldErr            EQU        -2813                ; An import library was too old for a client.
  808. cfragImportTooNewErr            EQU        -2814                ; An import library was too new for a client.
  809. cfragInitLoopErr                EQU        -2815                ; Circularity in required initialization order.
  810. cfragInitAtBootErr                EQU        -2816                ; A boot library has an initialization function.  (System 7 only)
  811. cfragLibConnErr                    EQU        -2817                ; 
  812. cfragCFMStartupErr                EQU        -2818                ; Internal error during CFM initialization.
  813. cfragCFMInternalErr                EQU        -2819                ; An internal inconstistancy has been detected.
  814. cfragFragmentCorruptErr            EQU        -2820                ; A fragment's container was corrupt (known format).
  815. cfragInitFunctionErr            EQU        -2821                ; A fragment's initialization routine returned an error.
  816. cfragNoApplicationErr            EQU        -2822                ; No application member found in the cfrg resource.
  817. cfragArchitectureErr            EQU        -2823                ; A fragment has an unacceptable architecture.
  818. cfragFragmentUsageErr            EQU        -2824                ; A semantic error in usage of the fragment.
  819. cfragFileSizeErr                EQU        -2825                ; A file was too large to be mapped.
  820. cfragNotClosureErr                EQU        -2826                ; The closure ID was actually a connection ID.
  821. cfragNoRegistrationErr            EQU        -2827                ; The registration name was not found.
  822. cfragContainerIDErr                EQU        -2828                ; The fragment container ID was not valid.
  823. cfragClosureIDErr                EQU        -2829                ; The closure ID was not valid.
  824. cfragAbortClosureErr            EQU        -2830                ; Used by notification handlers to abort a closure.
  825.  
  826. cfragLastErrCode                EQU        -2899                ; The last value in the range of CFM errors.
  827.     IF OLDROUTINENAMES THEN
  828. ;  The old spelling for Code Fragment Manager errors, kept for compatibility:
  829.  
  830. fragContextNotFound                EQU        -2800
  831. fragConnectionIDNotFound        EQU        -2801
  832. fragSymbolNotFound                EQU        -2802
  833. fragSectionNotFound                EQU        -2803
  834. fragLibNotFound                    EQU        -2804
  835. fragDupRegLibName                EQU        -2805
  836. fragFormatUnknown                EQU        -2806
  837. fragHadUnresolveds                EQU        -2807
  838. fragNoMem                        EQU        -2809
  839. fragNoAddrSpace                    EQU        -2810
  840. fragNoContextIDs                EQU        -2811
  841. fragObjectInitSeqErr            EQU        -2812
  842. fragImportTooOld                EQU        -2813
  843. fragImportTooNew                EQU        -2814
  844. fragInitLoop                    EQU        -2815
  845. fragInitRtnUsageErr                EQU        -2816
  846. fragLibConnErr                    EQU        -2817
  847. fragMgrInitErr                    EQU        -2818
  848. fragConstErr                    EQU        -2819
  849. fragCorruptErr                    EQU        -2820
  850. fragUserInitProcErr                EQU        -2821
  851. fragAppNotFound                    EQU        -2822
  852. fragArchError                    EQU        -2823
  853. fragInvalidFragmentUsage        EQU        -2824
  854. fragLastErrCode                    EQU        -2899
  855.     ENDIF    ; OLDROUTINENAMES
  856. ; Component Manager & component errors
  857.  
  858. invalidComponentID                EQU        -3000
  859. validInstancesExist                EQU        -3001
  860. componentNotCaptured            EQU        -3002
  861. componentDontRegister            EQU        -3003
  862. unresolvedComponentDLLErr        EQU        -3004
  863. ; Translation manager & Translation components
  864.  
  865. invalidTranslationPathErr        EQU        -3025                ;Source type to destination type not a valid path
  866. couldNotParseSourceFileErr        EQU        -3026                ;Source document does not contain source type
  867. noTranslationPathErr            EQU        -3030
  868. badTranslationSpecErr            EQU        -3031
  869. noPrefAppErr                    EQU        -3032
  870.  
  871. buf2SmallErr                    EQU        -3101
  872. noMPPErr                        EQU        -3102
  873. ckSumErr                        EQU        -3103
  874. extractErr                        EQU        -3104
  875. readQErr                        EQU        -3105
  876. atpLenErr                        EQU        -3106
  877. atpBadRsp                        EQU        -3107
  878. recNotFnd                        EQU        -3108
  879. sktClosedErr                    EQU        -3109
  880.  
  881. ;  Color Picker errors
  882.  
  883. firstPickerError                EQU        -4000
  884. invalidPickerType                EQU        -4000
  885. requiredFlagsDontMatch            EQU        -4001
  886. pickerResourceError                EQU        -4002
  887. cantLoadPicker                    EQU        -4003
  888. cantCreatePickerWindow            EQU        -4004
  889. cantLoadPackage                    EQU        -4005
  890. pickerCantLive                    EQU        -4006
  891. colorSyncNotInstalled            EQU        -4007
  892. badProfileError                    EQU        -4008
  893. noHelpForItem                    EQU        -4009
  894.  
  895.  
  896. ;  new Folder Manager error codes 
  897.  
  898. badFolderDescErr                EQU        -4270
  899. duplicateFolderDescErr            EQU        -4271
  900. noMoreFolderDescErr                EQU        -4272
  901. invalidFolderTypeErr            EQU        -4273
  902. duplicateRoutingErr                EQU        -4274
  903. routingNotFoundErr                EQU        -4275
  904. badRoutingSizeErr                EQU        -4276
  905.  
  906.  
  907.  
  908. afpAccessDenied                    EQU        -5000
  909. afpAuthContinue                    EQU        -5001
  910. afpBadUAM                        EQU        -5002
  911. afpBadVersNum                    EQU        -5003
  912. afpBitmapErr                    EQU        -5004
  913. afpCantMove                        EQU        -5005
  914. afpDenyConflict                    EQU        -5006
  915. afpDirNotEmpty                    EQU        -5007
  916. afpDiskFull                        EQU        -5008
  917. afpEofError                        EQU        -5009
  918. afpFileBusy                        EQU        -5010
  919. afpFlatVol                        EQU        -5011
  920. afpItemNotFound                    EQU        -5012
  921. afpLockErr                        EQU        -5013
  922. afpMiscErr                        EQU        -5014
  923. afpNoMoreLocks                    EQU        -5015
  924. afpNoServer                        EQU        -5016
  925. afpObjectExists                    EQU        -5017
  926. afpObjectNotFound                EQU        -5018
  927. afpParmErr                        EQU        -5019
  928. afpRangeNotLocked                EQU        -5020
  929. afpRangeOverlap                    EQU        -5021
  930. afpSessClosed                    EQU        -5022
  931. afpUserNotAuth                    EQU        -5023
  932. afpCallNotSupported                EQU        -5024
  933. afpObjectTypeErr                EQU        -5025
  934. afpTooManyFilesOpen                EQU        -5026
  935. afpServerGoingDown                EQU        -5027
  936. afpCantRename                    EQU        -5028
  937. afpDirNotFound                    EQU        -5029
  938. afpIconTypeError                EQU        -5030
  939. afpVolLocked                    EQU        -5031                ;Volume is Read-Only
  940. afpObjectLocked                    EQU        -5032                ;Object is M/R/D/W inhibited
  941. afpContainsSharedErr            EQU        -5033                ;the folder being shared contains a shared folder
  942. afpIDNotFound                    EQU        -5034
  943. afpIDExists                        EQU        -5035
  944. afpDiffVolErr                    EQU        -5036
  945. afpCatalogChanged                EQU        -5037
  946. afpSameObjectErr                EQU        -5038
  947. afpBadIDErr                        EQU        -5039
  948. afpPwdSameErr                    EQU        -5040                ;someone tried to change their password to the same password on a mantadory password change
  949. afpPwdTooShortErr                EQU        -5041                ;the password being set is too short: there is a minimum length that must be met or exceeded
  950. afpPwdExpiredErr                EQU        -5042                ;the password being used is too old: this requires the user to change the password before log-in can continue
  951. afpInsideSharedErr                EQU        -5043                ;the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder 
  952.                                                             ;  OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
  953. afpInsideTrashErr                EQU        -5044                ;the folder being shared is inside the trash folder 
  954.                                                             ;  OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder 
  955. afpBadDirIDType                    EQU        -5060
  956. afpCantMountMoreSrvre            EQU        -5061
  957. afpAlreadyMounted                EQU        -5062
  958. afpSameNodeErr                    EQU        -5063
  959.  
  960.  
  961. ; Text Engines, TSystemTextEngines, HIEditText error coded
  962.  
  963. ;  NumberFormatting error codes
  964.  
  965. numberFormattingNotANumberErr    EQU        -5200
  966. numberFormattingOverflowInDestinationErr EQU -5201
  967. numberFormattingBadNumberFormattingObjectErr EQU -5202
  968. numberFormattingSpuriousCharErr    EQU        -5203
  969. numberFormattingLiteralMissingErr EQU    -5204
  970. numberFormattingDelimiterMissingErr EQU    -5205
  971. numberFormattingEmptyFormatErr    EQU        -5206
  972. numberFormattingBadFormatErr    EQU        -5207
  973. numberFormattingBadOptionsErr    EQU        -5028
  974. numberFormattingBadTokenErr        EQU        -5209
  975. numberFormattingUnOrdredCurrencyRangeErr EQU -5210
  976. numberFormattingBadCurrencyPositionErr EQU -5211
  977. numberFortmattingNotADigitErr    EQU        -5212
  978. ;  TextParser error codes
  979.  
  980. textParserBadParamErr            EQU        -5220
  981. textParserObjectNotFoundErr        EQU        -5221
  982. textParserBadTokenValueErr        EQU        -5222
  983. textParserBadParserObjectErr    EQU        -5223
  984. textParserParamErr                EQU        -5224
  985. textParserNoMoreTextErr            EQU        -5225
  986. textParserBadTextLanguageErr    EQU        -5226
  987. textParserBadTextEncodingErr    EQU        -5227
  988. textParserNoSuchTokenFoundErr    EQU        -5228
  989. textParserNoMoreTokensErr        EQU        -5229
  990.  
  991. errUnknownAttributeTag            EQU        -5240
  992. errMarginWilllNotFit            EQU        -5241
  993. errNotInImagingMode                EQU        -5242
  994. errAlreadyInImagingMode            EQU        -5243
  995. errEngineNotFound                EQU        -5244
  996. errIteratorReachedEnd            EQU        -5245
  997. errInvalidRange                    EQU        -5246
  998. errOffsetNotOnElementBounday    EQU        -5247
  999. errNoHiliteText                    EQU        -5248
  1000. errEmptyScrap                    EQU        -5249
  1001. errReadOnlyText                    EQU        -5250
  1002. errUnknownElement                EQU        -5251
  1003. errNonContiuousAttribute        EQU        -5252
  1004. errCannotUndo                    EQU        -5253
  1005.  
  1006.  
  1007.                                                             ;Gestalt error codes
  1008. gestaltUnknownErr                EQU        -5550                ;value returned if Gestalt doesn't know the answer
  1009. gestaltUndefSelectorErr            EQU        -5551                ;undefined selector was passed to Gestalt
  1010. gestaltDupSelectorErr            EQU        -5552                ;tried to add an entry that already existed
  1011. gestaltLocationErr                EQU        -5553                ;gestalt function ptr wasn't in sysheap
  1012.  
  1013.  
  1014. ;  Collection Manager errors 
  1015.  
  1016. collectionItemLockedErr            EQU        -5750
  1017. collectionItemNotFoundErr        EQU        -5751
  1018. collectionIndexRangeErr            EQU        -5752
  1019. collectionVersionErr            EQU        -5753
  1020.  
  1021.  
  1022.                                                             ; Display Manager error codes (-6220...-6269)
  1023. kDMGenErr                        EQU        -6220                ;Unexpected Error
  1024.                                                             ; Mirroring-Specific Errors 
  1025. kDMMirroringOnAlready            EQU        -6221                ;Returned by all calls that need mirroring to be off to do their thing.
  1026. kDMWrongNumberOfDisplays        EQU        -6222                ;Can only handle 2 displays for now.
  1027. kDMMirroringBlocked                EQU        -6223                ;DMBlockMirroring() has been called.
  1028. kDMCantBlock                    EQU        -6224                ;Mirroring is already on, can’t Block now (call DMUnMirror() first).
  1029. kDMMirroringNotOn                EQU        -6225                ;Returned by all calls that need mirroring to be on to do their thing.
  1030.                                                             ; Other Display Manager Errors 
  1031. kSysSWTooOld                    EQU        -6226                ;Missing critical pieces of System Software.
  1032. kDMSWNotInitializedErr            EQU        -6227                ;Required software not initialized (eg windowmanager or display mgr).
  1033. kDMDriverNotDisplayMgrAwareErr    EQU        -6228                ;Video Driver does not support display manager.
  1034. kDMDisplayNotFoundErr            EQU        -6229                ;Could not find item (will someday remove).
  1035. kDMNotFoundErr                    EQU        -6229                ;Could not find item.
  1036. kDMDisplayAlreadyInstalledErr    EQU        -6230                ;Attempt to add an already installed display.
  1037. kDMMainDisplayCannotMoveErr        EQU        -6231                ;Trying to move main display (or a display mirrored to it) 
  1038. kDMNoDeviceTableclothErr        EQU        -6231                ;obsolete
  1039. kDMFoundErr                        EQU        -6232                ;Did not proceed because we found an item
  1040.  
  1041. ;  Error & status codes for general text and text encoding conversion
  1042.  
  1043.  
  1044.                                                             ; general text errors
  1045. kTextUnsupportedEncodingErr        EQU        -8738                ; specified encoding not supported for this operation
  1046. kTextMalformedInputErr            EQU        -8739                ; in DBCS, for example, high byte followed by invalid low byte
  1047. kTextUndefinedElementErr        EQU        -8740                ; text conversion errors
  1048. kTECMissingTableErr                EQU        -8745
  1049. kTECTableChecksumErr            EQU        -8746
  1050. kTECTableFormatErr                EQU        -8747
  1051. kTECCorruptConverterErr            EQU        -8748                ; invalid converter object reference
  1052. kTECNoConversionPathErr            EQU        -8749
  1053. kTECBufferBelowMinimumSizeErr    EQU        -8750                ; output buffer too small to allow processing of first input text element
  1054. kTECArrayFullErr                EQU        -8751                ; supplied name buffer or TextRun, TextEncoding, or UnicodeMapping array is too small
  1055. kTECBadTextRunErr                EQU        -8752
  1056. kTECPartialCharErr                EQU        -8753                ; input buffer ends in the middle of a multibyte character, conversion stopped
  1057. kTECUnmappableElementErr        EQU        -8754
  1058. kTECIncompleteElementErr        EQU        -8755                ; text element may be incomplete or is too long for internal buffers
  1059. kTECDirectionErr                EQU        -8756                ; direction stack overflow, etc.
  1060. kTECGlobalsUnavailableErr        EQU        -8770                ; globals have already been deallocated (premature TERM)
  1061. kTECItemUnavailableErr            EQU        -8771                ; item (e.g. name) not available for specified region (& encoding if relevant)
  1062.                                                             ; text conversion status codes
  1063. kTECUsedFallbacksStatus            EQU        -8783
  1064. kTECNeedFlushStatus                EQU        -8784
  1065. kTECOutputBufferFullStatus        EQU        -8785                ; output buffer has no room for conversion of next input text element (partial conversion)
  1066.                                                             ; deprecated error & status codes for low-level converter
  1067. unicodeChecksumErr                EQU        -8769
  1068. unicodeNoTableErr                EQU        -8768
  1069. unicodeVariantErr                EQU        -8767
  1070. unicodeFallbacksErr                EQU        -8766
  1071. unicodePartConvertErr            EQU        -8765
  1072. unicodeBufErr                    EQU        -8764
  1073. unicodeCharErr                    EQU        -8763
  1074. unicodeElementErr                EQU        -8762
  1075. unicodeNotFoundErr                EQU        -8761
  1076. unicodeTableFormatErr            EQU        -8760
  1077. unicodeDirectionErr                EQU        -8759
  1078. unicodeContextualErr            EQU        -8758
  1079. unicodeTextEncodingDataErr        EQU        -8757
  1080.  
  1081.  
  1082.  
  1083. codecErr                        EQU        -8960
  1084. noCodecErr                        EQU        -8961
  1085. codecUnimpErr                    EQU        -8962
  1086. codecSizeErr                    EQU        -8963
  1087. codecScreenBufErr                EQU        -8964
  1088. codecImageBufErr                EQU        -8965
  1089. codecSpoolErr                    EQU        -8966
  1090. codecAbortErr                    EQU        -8967
  1091. codecWouldOffscreenErr            EQU        -8968
  1092. codecBadDataErr                    EQU        -8969
  1093. codecDataVersErr                EQU        -8970
  1094. codecExtensionNotFoundErr        EQU        -8971
  1095. scTypeNotFoundErr                EQU        -8971
  1096. codecConditionErr                EQU        -8972
  1097. codecOpenErr                    EQU        -8973
  1098. codecCantWhenErr                EQU        -8974
  1099. codecCantQueueErr                EQU        -8975
  1100. codecNothingToBlitErr            EQU        -8976
  1101. codecNoMemoryPleaseWaitErr        EQU        -8977
  1102. codecDisabledErr                EQU        -8978                ; codec disabled itself -- pass codecFlagReenable to reset
  1103. codecNeedToFlushChainErr        EQU        -8979
  1104. lockPortBitsBadSurfaceErr        EQU        -8980
  1105. lockPortBitsWindowMovedErr        EQU        -8981
  1106. lockPortBitsWindowResizedErr    EQU        -8982
  1107. lockPortBitsWindowClippedErr    EQU        -8983
  1108. lockPortBitsBadPortErr            EQU        -8984
  1109. lockPortBitsSurfaceLostErr        EQU        -8985
  1110. codecParameterDialogConfirm        EQU        -8986
  1111. codecNeedAccessKeyErr            EQU        -8987                ; codec needs password in order to decompress
  1112. codecOffscreenFailedErr            EQU        -8988
  1113. codecDroppedFrameErr            EQU        -8989                ; returned from ImageCodecDrawBand 
  1114.  
  1115. noDeviceForChannel                EQU        -9400
  1116. grabTimeComplete                EQU        -9401
  1117. cantDoThatInCurrentMode            EQU        -9402
  1118. notEnoughMemoryToGrab            EQU        -9403
  1119. notEnoughDiskSpaceToGrab        EQU        -9404
  1120. couldntGetRequiredComponent        EQU        -9405
  1121. badSGChannel                    EQU        -9406
  1122. seqGrabInfoNotAvailable            EQU        -9407
  1123. deviceCantMeetRequest            EQU        -9408
  1124. badControllerHeight                EQU        -9994
  1125. editingNotAllowed                EQU        -9995
  1126. controllerBoundsNotExact        EQU        -9996
  1127. cannotSetWidthOfAttachedController EQU    -9997
  1128. controllerHasFixedHeight        EQU        -9998
  1129. cannotMoveAttachedController    EQU        -9999
  1130. ;  AERegistry Errors 
  1131.  
  1132. errAEBadKeyForm                    EQU        -10002
  1133. errAECantHandleClass            EQU        -10010
  1134. errAECantSupplyType                EQU        -10009
  1135. errAECantUndo                    EQU        -10015
  1136. errAEEventFailed                EQU        -10000
  1137. errAEIndexTooLarge                EQU        -10007
  1138. errAEInTransaction                EQU        -10011
  1139. errAELocalOnly                    EQU        -10016
  1140. errAENoSuchTransaction            EQU        -10012
  1141. errAENotAnElement                EQU        -10008
  1142. errAENotASingleObject            EQU        -10014
  1143. errAENotModifiable                EQU        -10003
  1144. errAENoUserSelection            EQU        -10013
  1145. errAEPrivilegeError                EQU        -10004
  1146. errAEReadDenied                    EQU        -10005
  1147. errAETypeError                    EQU        -10001
  1148. errAEWriteDenied                EQU        -10006
  1149. ;  TELErr 
  1150.  
  1151. telGenericError                    EQU        -1
  1152. telNoErr                        EQU        0
  1153. telNoTools                        EQU        8                    ; no telephone tools found in extension folder 
  1154. telBadTermErr                    EQU        -10001                ; invalid TELHandle or handle not found
  1155. telBadDNErr                        EQU        -10002                ; TELDNHandle not found or invalid 
  1156. telBadCAErr                        EQU        -10003                ; TELCAHandle not found or invalid 
  1157. telBadHandErr                    EQU        -10004                ; bad handle specified 
  1158. telBadProcErr                    EQU        -10005                ; bad msgProc specified 
  1159. telCAUnavail                    EQU        -10006                ; a CA is not available 
  1160. telNoMemErr                        EQU        -10007                ; no memory to allocate handle 
  1161. telNoOpenErr                    EQU        -10008                ; unable to open terminal 
  1162. telBadHTypeErr                    EQU        -10010                ; bad hook type specified 
  1163. telHTypeNotSupp                    EQU        -10011                ; hook type not supported by this tool 
  1164. telBadLevelErr                    EQU        -10012                ; bad volume level setting 
  1165. telBadVTypeErr                    EQU        -10013                ; bad volume type error 
  1166. telVTypeNotSupp                    EQU        -10014                ; volume type not supported by this tool
  1167. telBadAPattErr                    EQU        -10015                ; bad alerting pattern specified 
  1168. telAPattNotSupp                    EQU        -10016                ; alerting pattern not supported by tool
  1169. telBadIndex                        EQU        -10017                ; bad index specified 
  1170. telIndexNotSupp                    EQU        -10018                ; index not supported by this tool 
  1171. telBadStateErr                    EQU        -10019                ; bad device state specified 
  1172. telStateNotSupp                    EQU        -10020                ; device state not supported by tool 
  1173. telBadIntExt                    EQU        -10021                ; bad internal external error 
  1174. telIntExtNotSupp                EQU        -10022                ; internal external type not supported by this tool 
  1175. telBadDNDType                    EQU        -10023                ; bad DND type specified 
  1176. telDNDTypeNotSupp                EQU        -10024                ; DND type is not supported by this tool 
  1177. telFeatNotSub                    EQU        -10030                ; feature not subscribed 
  1178. telFeatNotAvail                    EQU        -10031                ; feature subscribed but not available 
  1179. telFeatActive                    EQU        -10032                ; feature already active 
  1180. telFeatNotSupp                    EQU        -10033                ; feature program call not supported by this tool 
  1181. telConfLimitErr                    EQU        -10040                ; limit specified is too high for this configuration 
  1182. telConfNoLimit                    EQU        -10041                ; no limit was specified but required
  1183. telConfErr                        EQU        -10042                ; conference was not prepared 
  1184. telConfRej                        EQU        -10043                ; conference request was rejected 
  1185. telTransferErr                    EQU        -10044                ; transfer not prepared 
  1186. telTransferRej                    EQU        -10045                ; transfer request rejected 
  1187. telCBErr                        EQU        -10046                ; call back feature not set previously 
  1188. telConfLimitExceeded            EQU        -10047                ; attempt to exceed switch conference limits 
  1189. telBadDNType                    EQU        -10050                ; DN type invalid 
  1190. telBadPageID                    EQU        -10051                ; bad page ID specified
  1191. telBadIntercomID                EQU        -10052                ; bad intercom ID specified 
  1192. telBadFeatureID                    EQU        -10053                ; bad feature ID specified 
  1193. telBadFwdType                    EQU        -10054                ; bad fwdType specified 
  1194. telBadPickupGroupID                EQU        -10055                ; bad pickup group ID specified 
  1195. telBadParkID                    EQU        -10056                ; bad park id specified 
  1196. telBadSelect                    EQU        -10057                ; unable to select or deselect DN 
  1197. telBadBearerType                EQU        -10058                ; bad bearerType specified 
  1198. telBadRate                        EQU        -10059                ; bad rate specified 
  1199. telDNTypeNotSupp                EQU        -10060                ; DN type not supported by tool 
  1200. telFwdTypeNotSupp                EQU        -10061                ; forward type not supported by tool 
  1201. telBadDisplayMode                EQU        -10062                ; bad display mode specified 
  1202. telDisplayModeNotSupp            EQU        -10063                ; display mode not supported by tool 
  1203. telNoCallbackRef                EQU        -10064                ; no call back reference was specified, but is required 
  1204. telAlreadyOpen                    EQU        -10070                ; terminal already open 
  1205. telStillNeeded                    EQU        -10071                ; terminal driver still needed by someone else 
  1206. telTermNotOpen                    EQU        -10072                ; terminal not opened via TELOpenTerm 
  1207. telCANotAcceptable                EQU        -10080                ; CA not "acceptable" 
  1208. telCANotRejectable                EQU        -10081                ; CA not "rejectable" 
  1209. telCANotDeflectable                EQU        -10082                ; CA not "deflectable" 
  1210. telPBErr                        EQU        -10090                ; parameter block error, bad format 
  1211. telBadFunction                    EQU        -10091                ; bad msgCode specified 
  1212.                                                             ;    telNoTools            = -10101,           unable to find any telephone tools 
  1213. telNoSuchTool                    EQU        -10102                ; unable to find tool with name specified 
  1214. telUnknownErr                    EQU        -10103                ; unable to set config 
  1215. telNoCommFolder                    EQU        -10106                ; Communications/Extensions ƒ not found 
  1216. telInitFailed                    EQU        -10107                ; initialization failed 
  1217. telBadCodeResource                EQU        -10108                ; code resource not found 
  1218. telDeviceNotFound                EQU        -10109                ; device not found 
  1219. telBadProcID                    EQU        -10110                ; invalid procID 
  1220. telValidateFailed                EQU        -10111                ; telValidate failed 
  1221. telAutoAnsNotOn                    EQU        -10112                ; autoAnswer in not turned on 
  1222. telDetAlreadyOn                    EQU        -10113                ; detection is already turned on 
  1223. telBadSWErr                        EQU        -10114                ; Software not installed properly 
  1224. telBadSampleRate                EQU        -10115                ; incompatible sample rate 
  1225. telNotEnoughdspBW                EQU        -10116                ; not enough real-time for allocation 
  1226.  
  1227.  
  1228.                                                             ;Power Manager Errors
  1229. pmBusyErr                        EQU        -13000                ;Power Mgr never ready to start handshake
  1230. pmReplyTOErr                    EQU        -13001                ;Timed out waiting for reply
  1231. pmSendStartErr                    EQU        -13002                ;during send, pmgr did not start hs
  1232. pmSendEndErr                    EQU        -13003                ;during send, pmgr did not finish hs
  1233. pmRecvStartErr                    EQU        -13004                ;during receive, pmgr did not start hs
  1234. pmRecvEndErr                    EQU        -13005                ;during receive, pmgr did not finish hs configured for this connection
  1235.  
  1236. ;  MP (multiprocessor API) error codes
  1237.  
  1238. kMPDeletedErr                    EQU        -29295
  1239. kMPTimeoutErr                    EQU        -29296
  1240. kMPTaskAbortedErr                EQU        -29297
  1241. kMPInsufficientResourcesErr        EQU        -29298
  1242. kMPInvalidIDErr                    EQU        -29299
  1243.  
  1244. ;  StringCompare error codes (in TextUtils range)
  1245.  
  1246. kCollateAttributesNotFoundErr    EQU        -29500
  1247. kCollateInvalidOptions            EQU        -29501
  1248. kCollateMissingUnicodeTableErr    EQU        -29502
  1249. kCollateUnicodeConvertFailedErr    EQU        -29503
  1250. kCollatePatternNotFoundErr        EQU        -29504
  1251. kCollateInvalidChar                EQU        -29505
  1252. kCollateBufferTooSmall            EQU        -29506
  1253. kCollateInvalidCollationRef        EQU        -29507
  1254.  
  1255. ;  TextObjects error codes
  1256.  
  1257. textObjInvalidIndexErr            EQU        -29580
  1258. textObjBufferTooSmallErr        EQU        -29581
  1259. textObjObjectTooSmallErr        EQU        -29582
  1260. textObjTextConversionFailedErr    EQU        -29583
  1261. textObjMalformedObjectErr        EQU        -29584
  1262. textObjAnnotationNotFoundErr    EQU        -29585
  1263. textObjMoreAnnotationsErr        EQU        -29586
  1264. textObjLanguageChangedErr        EQU        -29587
  1265. textObjFontNotFoundErr            EQU        -29599
  1266. ;  Locale Object Mgr errors
  1267.  
  1268. localeNotFoundErr                EQU        -30001
  1269. localeObjectAttributeNotAvailErr EQU    -30002
  1270. localeObjectNoNamesTableErr        EQU        -30005
  1271. localeBadReferenceErr            EQU        -30006
  1272. localeObjectNotFoundErr            EQU        -30007
  1273. localeObjectInvalidReferenceErr    EQU        -30008
  1274. localeObjectItemFoundIsLastErr    EQU        -30009
  1275. localeObjectNameAttributeConflictErr EQU -30010
  1276. localeObjectInvalidIteratorErr    EQU        -30020
  1277. localeObjectNoNameErr            EQU        -30021
  1278. localeObjectTagDataNotFoundErr    EQU        -30022
  1279. localeObjectCannotDeleteSystemObjectErr EQU -30023
  1280. localeCouldNotWriteLinkedObjectsErr EQU    -30024
  1281. localeDuplicateErr                EQU        -30025
  1282. localeObjectDefaultValueNotAvailableErr EQU -30026
  1283. localeNoAssociatedDataTagsErr    EQU        -30027
  1284. ;  Settings Manager (formerly known as Location Manager) Errors 
  1285.  
  1286. kALMInternalErr                    EQU        -30049
  1287. kALMGroupNotFoundErr            EQU        -30048
  1288. kALMNoSuchModuleErr                EQU        -30047
  1289. kALMModuleCommunicationErr        EQU        -30046
  1290. kALMDuplicateModuleErr            EQU        -30045
  1291. kALMInstallationErr                EQU        -30044
  1292. kALMDeferSwitchErr                EQU        -30043
  1293. kALMRebootFlagsLevelErr            EQU        -30042
  1294.  
  1295. kALMLocationNotFoundErr            EQU        -30048                ; Old name 
  1296. ;  QuickTime VR Errors 
  1297.  
  1298. notAQTVRMovieErr                EQU        -30540
  1299. constraintReachedErr            EQU        -30541
  1300. callNotSupportedByNodeErr        EQU        -30542
  1301. selectorNotSupportedByNodeErr    EQU        -30543
  1302. invalidNodeIDErr                EQU        -30544
  1303. invalidViewStateErr                EQU        -30545
  1304. timeNotInViewErr                EQU        -30546
  1305. propertyNotSupportedByNodeErr    EQU        -30547
  1306. settingNotSupportedByNodeErr    EQU        -30548
  1307. limitReachedErr                    EQU        -30549
  1308. invalidNodeFormatErr            EQU        -30550
  1309. invalidHotSpotIDErr                EQU        -30551
  1310. noMemoryNodeFailedInitialize    EQU        -30552
  1311. streamingNodeNotReadyErr        EQU        -30553
  1312.  
  1313.  
  1314. badComponentInstance            EQU        $80008001
  1315. badComponentSelector            EQU        $80008002
  1316.  
  1317.  
  1318.  
  1319. dsBusError                        EQU        1                    ;bus error
  1320. dsAddressErr                    EQU        2                    ;address error
  1321. dsIllInstErr                    EQU        3                    ;illegal instruction error
  1322. dsZeroDivErr                    EQU        4                    ;zero divide error
  1323. dsChkErr                        EQU        5                    ;check trap error
  1324. dsOvflowErr                        EQU        6                    ;overflow trap error
  1325. dsPrivErr                        EQU        7                    ;privilege violation error
  1326. dsTraceErr                        EQU        8                    ;trace mode error
  1327. dsLineAErr                        EQU        9                    ;line 1010 trap error
  1328. dsLineFErr                        EQU        10                    ;line 1111 trap error
  1329. dsMiscErr                        EQU        11                    ;miscellaneous hardware exception error
  1330. dsCoreErr                        EQU        12                    ;unimplemented core routine error
  1331. dsIrqErr                        EQU        13                    ;uninstalled interrupt error
  1332. dsIOCoreErr                        EQU        14                    ;IO Core Error
  1333. dsLoadErr                        EQU        15                    ;Segment Loader Error
  1334. dsFPErr                            EQU        16                    ;Floating point error
  1335. dsNoPackErr                        EQU        17                    ;package 0 not present
  1336. dsNoPk1                            EQU        18                    ;package 1 not present
  1337. dsNoPk2                            EQU        19                    ;package 2 not present
  1338.  
  1339. dsNoPk3                            EQU        20                    ;package 3 not present
  1340. dsNoPk4                            EQU        21                    ;package 4 not present
  1341. dsNoPk5                            EQU        22                    ;package 5 not present
  1342. dsNoPk6                            EQU        23                    ;package 6 not present
  1343. dsNoPk7                            EQU        24                    ;package 7 not present
  1344. dsMemFullErr                    EQU        25                    ;out of memory!
  1345. dsBadLaunch                        EQU        26                    ;can't launch file
  1346. dsFSErr                            EQU        27                    ;file system map has been trashed
  1347. dsStknHeap                        EQU        28                    ;stack has moved into application heap
  1348. negZcbFreeErr                    EQU        33                    ;ZcbFree has gone negative
  1349. dsFinderErr                        EQU        41                    ;can't load the Finder error
  1350. dsBadSlotInt                    EQU        51                    ;unserviceable slot interrupt
  1351. dsBadSANEOpcode                    EQU        81                    ;bad opcode given to SANE Pack4
  1352. dsBadPatchHeader                EQU        83                    ;SetTrapAddress saw the “come-from” header
  1353. menuPrgErr                        EQU        84                    ;happens when a menu is purged
  1354. dsMBarNFnd                        EQU        85                    ;Menu Manager Errors
  1355. dsHMenuFindErr                    EQU        86                    ;Menu Manager Errors
  1356. dsWDEFNotFound                    EQU        87                    ;could not load WDEF
  1357. dsCDEFNotFound                    EQU        88                    ;could not load CDEF
  1358. dsMDEFNotFound                    EQU        89                    ;could not load MDEF
  1359.  
  1360. dsNoFPU                            EQU        90                    ;an FPU instruction was executed and the machine doesn’t have one
  1361. dsNoPatch                        EQU        98                    ;Can't patch for particular Model Mac
  1362. dsBadPatch                        EQU        99                    ;Can't load patch resource
  1363. dsParityErr                        EQU        101                    ;memory parity error
  1364. dsOldSystem                        EQU        102                    ;System is too old for this ROM
  1365. ds32BitMode                        EQU        103                    ;booting in 32-bit on a 24-bit sys
  1366. dsNeedToWriteBootBlocks            EQU        104                    ;need to write new boot blocks
  1367. dsNotEnoughRAMToBoot            EQU        105                    ;must have at least 1.5MB of RAM to boot 7.0
  1368. dsBufPtrTooLow                    EQU        106                    ;bufPtr moved too far during boot
  1369. dsVMDeferredFuncTableFull        EQU        112                    ;VM's DeferUserFn table is full
  1370. dsVMBadBackingStore                EQU        113                    ;Error occurred while reading or writing the VM backing-store file
  1371. dsCantHoldSystemHeap            EQU        114                    ;Unable to hold the system heap during boot
  1372. dsSystemRequiresPowerPC            EQU        116                    ;Startup disk requires PowerPC
  1373. dsGibblyMovedToDisabledFolder    EQU        117                    ; For debug builds only, signals that active gibbly was disabled during boot. 
  1374. dsUnBootableSystem                EQU        118                    ; Active system file will not boot on this system because it was designed only to boot from a CD. 
  1375. dsWriteToSupervisorStackGuardPage EQU    128                    ;the supervisor stack overflowed into its guard page 
  1376. dsReinsert                        EQU        30                    ;request user to reinsert off-line volume
  1377. shutDownAlert                    EQU        42                    ;handled like a shutdown error
  1378. dsShutDownOrRestart                EQU        20000                ;user choice between ShutDown and Restart
  1379. dsSwitchOffOrRestart            EQU        20001                ;user choice between switching off and Restart
  1380. dsForcedQuit                    EQU        20002                ;allow the user to ExitToShell, return if Cancel
  1381. dsRemoveDisk                    EQU        20003                ;request user to remove disk from manual eject drive
  1382. dsDirtyDisk                        EQU        20004                ;request user to return a manually-ejected dirty disk
  1383. dsShutDownOrResume                EQU        20109                ;allow user to return to Finder or ShutDown
  1384. dsSCSIWarn                        EQU        20010                ;Portable SCSI adapter warning.
  1385. dsMBSysError                    EQU        29200                ;Media Bay replace warning.
  1386. dsMBFlpySysError                EQU        29201                ;Media Bay, floppy replace warning.
  1387. dsMBATASysError                    EQU        29202                ;Media Bay, ATA replace warning.
  1388. dsMBATAPISysError                EQU        29203                ;Media Bay, ATAPI replace warning...
  1389. dsMBExternFlpySysError            EQU        29204                ;Media Bay, external floppy drive reconnect warning
  1390.  
  1391. ;      System Errors that are used after MacsBug is loaded to put up dialogs since these should not 
  1392. ;      cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add 
  1393. ;      to an existing dialog without putting up a whole new dialog 
  1394.  
  1395.  
  1396.  
  1397. dsNoExtsMacsBug                    EQU        -1                    ;not a SysErr, just a placeholder 
  1398. dsNoExtsDisassembler            EQU        -2                    ;not a SysErr, just a placeholder 
  1399. dsMacsBugInstalled                EQU        -10                    ;say “MacsBug Installed”
  1400. dsDisassemblerInstalled            EQU        -11                    ;say “Disassembler Installed”
  1401. dsExtensionsDisabled            EQU        -13                    ;say “Extensions Disabled”
  1402. dsGreeting                        EQU        40                    ;welcome to Macintosh greeting
  1403. dsSysErr                        EQU        32767                ;general system error
  1404.                                                             ;old names here for compatibility’s sake
  1405. WDEFNFnd                        EQU        87
  1406.  
  1407. CDEFNFnd                        EQU        88
  1408. dsNotThe1                        EQU        31                    ;not the disk I wanted
  1409. dsBadStartupDisk                EQU        42                    ;unable to mount boot volume (sad Mac only)
  1410. dsSystemFileErr                    EQU        43                    ;can’t find System file to open (sad Mac only)
  1411. dsHD20Installed                    EQU        -12                    ;say “HD20 Startup”
  1412. mBarNFnd                        EQU        -126                ;system error code for MBDF not found
  1413. hMenuFindErr                    EQU        -127                ;could not find HMenu's parent in MenuKey
  1414. userBreak                        EQU        -490                ;user debugger break
  1415. strUserBreak                    EQU        -491                ;user debugger break; display string on stack
  1416. exUserBreak                        EQU        -492                ;user debugger break; execute debugger commands on stack
  1417.  
  1418.  
  1419.                                                             ; DS Errors which are specific to the new runtime model introduced with PowerPC 
  1420. dsBadLibrary                    EQU        1010                ; Bad shared library 
  1421. dsMixedModeFailure                EQU        1011                ; Internal Mixed Mode Failure 
  1422.  
  1423. ;
  1424. ; pascal void SysError(short errorCode)
  1425. ;
  1426.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  1427.         ; parameters:
  1428.         ;    errorCode       => D0
  1429.         _SysError:    OPWORD    $A9C9
  1430.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  1431.         IMPORT_CFM_FUNCTION SysError
  1432.     ENDIF
  1433.  
  1434.  
  1435.  
  1436.     ENDIF ; __ERRORS__ 
  1437.  
  1438.